import { createI18n } from "vue-i18n";
import zh from "@/i18n/zh-CN";
import en from "@/i18n/en-US";
const messages = {
  zh: { ...zh },
  en: { ...en },
};

const i18n = createI18n({
  legacy: false,
  locale: "zh", // 默认语言
  messages,
});
export function initI18n(app) {
  app.use(i18n);
}
export default i18n;
